#include <iostream>

int main() {
    void search(float (*p)[4], int n);
    float score[3][4] = {{57, 58, 59, 70}, {45, 65, 76, 35}, {52, 53, 87, 46}};
    search(score, 3);
    return 0;
}


void search(float (*p)[4], int n) {
    int i, j ,flag;
    for(j = 0; j < n; j++) {
        flag = 0;
        for (i = 0; i < 4; i++) {
            if (*(*(p + j) + i) < 60) flag = 1;
        }
        if (flag == 1) {
            printf("NO.%d fails, his score are: \n");
            for (i = 0; i < 4; i++) {
                printf("%5.2f\t", *(*(p + j) + i));
            }
            printf("\n");
        }
    }
}